/*
 * This file is part of aKoustiK.

 * aKoustiK is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * aKoustiK is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with aKoustiK.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef PLAYLISTVIEW_H
#define PLAYLISTVIEW_H

#include <QtGui/QTreeView>

class PlaylistView : public QTreeView {
    Q_OBJECT
public:
    PlaylistView(QWidget* parent);
    ~PlaylistView();
    void setModel(QAbstractItemModel *model);
protected:
    void keyPressEvent(QKeyEvent *event);
private slots:
    void userDoubleClicked(const QModelIndex& index);
signals:
    void deleteItems(const QModelIndexList& list);
    void playItem(int index);
};

#endif
